/************************************************************
   Copyright 2008 Abhinav Pobbati

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*************************************************************/

#pragma once
#include "Havok4Xna/Physics/Collide/HkpCollide.h"
#include "Havok4Xna/Physics/Collide/Agent/HkpAgent.h"
#include "Havok4Xna/Physics/Collide/Shape/HkpShape.h"

#pragma unmanaged
#include <Physics/Collide/Query/Collector/BodyPairCollector/hkpAllCdBodyPairCollector.h>
#include <Physics/Collide/Query/Collector/PointCollector/hkpAllCdPointCollector.h>
#include <Physics/Collide/Query/Collector/RayCollector/hkpAllRayHitCollector.h>
#include <Physics/Collide/Query/Collector/PointCollector/hkpClosestCdPointCollector.h>
#include <Physics/Collide/Query/Collector/RayCollector/hkpClosestRayHitCollector.h>
#include <Physics/Collide/Query/Collector/BodyPairCollector/hkpFirstCdBodyPairCollector.h>
#include <Physics/Collide/Query/Collector/PointCollector/hkpFixedBufferCdPointCollector.h>
#include <Physics/Collide/Query/Collector/BodyPairCollector/hkpFlagCdBodyPairCollector.h>
#include <Physics/Collide/Query/CastUtil/hkpLinearCastInput.h>
#include <Physics/Collide/Query/Collector/BodyPairCollector/hkpRootCdBodyPair.h>
#include <Physics/Collide/Query/Collector/PointCollector/hkpRootCdPoint.h>
#include <Physics/Collide/Query/Multithreaded/hkpCollisionJobs.h>
#include <Physics/Collide/Shape/Query/hkpShapeRayCastInput.h>
#include <Physics/Collide/Query/Multithreaded/hkpCollisionJobs.h>
#include <Physics/Collide/Query/Collector/PointCollector/hkpSimpleClosestContactCollector.h>
#include <Physics/Collide/Query/CastUtil/hkpSimpleWorldRayCaster.h>
#include <Physics/Collide/Query/Multithreaded/hkpCollisionJobs.h>
#include <Physics/Collide/Query/CastUtil/hkpWorldLinearCaster.h>
#include <Physics/Collide/Query/CastUtil/hkpWorldRayCastInput.h>
#include <Physics/Collide/Query/Multithreaded/hkpCollisionJobs.h>
#pragma managed

namespace Havok4Xna {
	namespace Physics {
		namespace Collide {
			public ref class HkpAllCdBodyPairCollector : public HkpCdBodyPairCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpAllCdBodyPairCollector, hkpAllCdBodyPairCollector, HkpCdBodyPairCollector)
			};

			public ref class HkpAllCdPointCollector : public HkpCdPointCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpAllCdPointCollector, hkpAllCdPointCollector, HkpCdPointCollector)
			};

			public ref class HkpAllRayHitCollector : public HkpRayHitCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpAllRayHitCollector, hkpAllRayHitCollector, HkpRayHitCollector)
			};
			
			public ref class HkpClosestCdPointCollector : public HkpCdPointCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpClosestCdPointCollector, hkpClosestCdPointCollector, HkpCdPointCollector)
			};

			public ref class HkpClosestRayHitCollector : public HkpRayHitCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpClosestRayHitCollector, hkpClosestRayHitCollector, HkpRayHitCollector)
			};

			public ref class HkpFirstCdBodyPairCollector : public HkpCdBodyPairCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpFirstCdBodyPairCollector, hkpFirstCdBodyPairCollector, HkpCdBodyPairCollector)
			};

			public ref class HkpFixedBufferCdPointCollector : public HkpCdPointCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpFixedBufferCdPointCollector, hkpFixedBufferCdPointCollector, HkpCdPointCollector)
			};

			public ref class HkpFlagCdBodyPairCollector : public HkpCdBodyPairCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpFlagCdBodyPairCollector, hkpFlagCdBodyPairCollector, HkpCdBodyPairCollector)
			};

			public ref class HkpLinearCastInput : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpLinearCastInput, hkpLinearCastInput)
			};

			public ref class HkpRootCdBodyPair : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpRootCdBodyPair, hkpRootCdBodyPair)
			};

			public ref class HkpRootCdPoint : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpRootCdPoint, hkpRootCdPoint)
			};

			/*public ref class HkpCollisionJobs {
			internal:
				HK_CLASS_INTERNALS(HkpCollisionJobs, hkpCollisionJobs)
			};*/

			public ref class HkpShapeRayCastInput : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpShapeRayCastInput, hkpShapeRayCastInput)
			};

			public ref class HkpShapeRayCastJob : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpShapeRayCastJob, hkpShapeRayCastJob)
			};

			public ref class HkpSimpleClosestContactCollector : public HkpCdPointCollector {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpSimpleClosestContactCollector, hkpSimpleClosestContactCollector, HkpCdPointCollector)
			};

			public ref class HkpSimpleWorldRayCaster : public HkpBroadPhaseCastCollector {
			internal:
				HK_CLASS_INTERNALS(HkpSimpleWorldRayCaster, hkpSimpleWorldRayCaster)
			};

			public ref class HkpWorldGetClosestPointsCommand : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpWorldGetClosestPointsCommand, hkpWorldGetClosestPointsCommand)
			};

			public ref class HkpWorldGetClosestPointsJob : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpWorldGetClosestPointsJob, hkpWorldGetClosestPointsJob)
			};

			public ref class HkpWorldLinearCastCommand : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpWorldLinearCastCommand, hkpWorldLinearCastCommand)
			};

			public ref class HkpWorldRayCastInput : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpWorldRayCastInput, hkpWorldRayCastInput)
			};

			public ref class HkpWorldRayCastJob : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpWorldRayCastJob, hkpWorldRayCastJob)
			};

			public ref class HkpWorldRayCastOutput : public HkpShapeRayCastOutput {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpWorldRayCastOutput, hkpWorldRayCastOutput, HkpShapeRayCastOutput)
			};
		}
	}
}
